/*
 *  Plane.cpp
 *  rayTracer
 *
 *  Created by Zachry Thayer on 10/25/09.
 *  Copyright 2009 A_Nub. All rights reserved.
 *
 */

#include "Plane.h"

Intersect Plane::intersect(Ray &ray){
	/*	for(int j = 2, i = 0; i < 3; j = i; i ++)
		{
			Vector E(V[i] - V[j]); // edge direction
			Vector H(P    - V[j]); // edge start towards point
			Vector F(E ^ D); // cross product. Normal of edge's half plane
			float  d(H * F); // dot   product. sign of point from edge's half plane
			
			// since D = -N from the Point in triangle function, 
			// we need to test for POSITIVE half planes.
			if (d > 0.0f) // point on positive half-plane (outside)
			{
				return false;
			}
		}
	return true;*/
	return Intersect();
}

bool Plane::inside(Vec3 &point){
	return false;
}

